package cn.wufuqi.recyclerviewbindingadapter

import android.app.Application
import cn.wufuqi.recyclerviewbindingadapter.callbacks.AdapterActivityCallbacks
import com.wukonganimation.action.ActionManager

object RecyclerViewBindingAdapterManager {

    var isInit = false
        private set

    fun init(application: Application) {
        if (isInit) {
            return
        }
        isInit = true
        ActionManager.init(application)
        application.registerActivityLifecycleCallbacks(AdapterActivityCallbacks())
    }

}